package com.zmt.content;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Import;

@Import({com.zmt.content.config.TokenConfig.class,com.zmt.content.config.ResourceServerConfig.class})
@EnableSwagger2Doc
@SpringBootApplication
@MapperScan("com.zmt.content.mapper")//我不理解这样字都可以扫描到Mapper包，但是不加就扫描不到
@ComponentScan(basePackages = {"com.zmt.xuechengplusbase.exception", "com.xuecheng.messagesdk","com.zmt.*"})
@EnableFeignClients("com.zmt.content.feignClient")
public class XuechengPlusContentApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(XuechengPlusContentApiApplication.class, args);
    }
}
